package com.pap.product.publish.auto.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.pap.base.mapper.PapBaseMapper;
import com.pap.product.publish.auto.entity.ProductPublishDetailArea;;

public interface ProductPublishDetailAreaMapper extends PapBaseMapper<ProductPublishDetailArea> {
	int deleteByPrimaryKey(String id);

	int selectCountByMap(Map<Object, Object> map);

	List<ProductPublishDetailArea> selectListByMap(Map<Object, Object> map);

	ProductPublishDetailArea selectByPrimaryKeyAndTableName(@Param("id") String id,
			@Param("dynamicTableName") String dynamicTableName);

	int deleteByPrimaryKeyAndTableName(@Param("id") String id, @Param("dynamicTableName") String dynamicTableName);

	int insert(ProductPublishDetailArea record);

	int insertSelective(ProductPublishDetailArea record);

	ProductPublishDetailArea selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(ProductPublishDetailArea record);

	int updateByPrimaryKey(ProductPublishDetailArea record);
	
	// alexgaoyh
	
	int deleteByProductId(@Param("productId") String productId);
	
	int deleteByPublishId(@Param("publishId") String publishId);
}